﻿@model CERT.Models.RegisterModel

@using (Html.BeginForm("JsonRegister", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { Id = "registerForm" }))
{
    @Html.AntiForgeryToken()
    <div class="panel panel-primary" title="Change Password">
    <div class="panel-heading">
        <h3 class="panel-title center">Register</h3>
    </div>
    <div class="container">
    <div class="form-horizontal">
        <form>

            <div class="form-group">
                @Html.LabelFor(m => m.UserName, new { @class = "form-label col-md-3"  })
                <div class="controls col-md-3">
                    @Html.TextBoxFor(m => m.UserName, new { id = "registerName", placeholder = "email" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Password, new { @class = "form-label  col-md-3" })
                <div class="controls col-md-3">
                    @Html.PasswordFor(m => m.Password, new { placeholder = "password", id = "registerPassword", @class = "password_test" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.ConfirmPassword, new { @class = "form-label col-md-3" })
                <div class="controls col-md-3">
                    @Html.PasswordFor(m => m.ConfirmPassword, new { placeholder = "password", id = "confirmPassword" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.EmailId, new { @class = "form-label col-md-3" })
                <div class="controls  col-md-3">
                    @Html.TextBoxFor(m => m.EmailId, new { placeholder = "email" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Details, new { @class = "form-label col-md-3" })
                <div class="controls  col-md-3">
                    @Html.TextBoxFor(m => m.Details, new { placeholder = "about yourself" })
                </div>
            </div>

            <div class="form-group">
                <div class="controls">
                    <input type="submit" value="Sign up" class="btn-primary" name="signup" />
                </div>
            </div>
            <div class="form-group">
                @Html.ValidationSummary()
            </div>
        </form>
    </div>
        </div>
        </div>
}
<script>
    jQuery(function ($) {
        $(".password_test").passStrengthify();
    });

</script>
